Component({
  mixins: [],
  data: {
    animation:'',
		rules:'',
		bg:{
			url:"https://img.alicdn.com/imgextra/i3/4161056916/O1CN01BLJdLB20xZqnI4KQk_!!4161056916.png",
			width:680,
			height:780
		}
  },
  props: {
  },
  onInit(){
    //console.info("1111",this.props.rules)

    this.setData({
      rules:this.props.rules
    })
  },
  didMount() {
    this.animation = my.createAnimation();

    this.animation.translate('0%','150%').step()
    this.setData({ animation: this.animation.export() })

  },
  didUpdate() {},
  didUnmount() {},
  methods: {

		checkTask(){

			this.closeList()

			this.$page.showTask()

		},


    closeList(){
      
      this.animation.translate('0%','-150%').step()
			this.setData({ animation: this.animation.export() })
			
			this.$page.pipei.startDownTime()

      setTimeout(() => {
        this.$page.setData({
          isShowTimeOut:false
        })
      }, 400);
		},

		suiji(){
			this.closeList()

			this.$page.cancelSet()
			this.$page.setData({
          showGame:'main',
      })

			setTimeout(() => {
				this.$page.startGame()
			}, 500);
		}

  },
});